from django.db import models
import datetime


# Create your models here.
class User(models.Model):
    id = models.AutoField(primary_key=True)
    username = models.CharField(max_length=32, unique=True)
    password = models.CharField(max_length=32)
    gender = models.PositiveSmallIntegerField()
    new = models.CharField(max_length=10, null=True)
    age = models.IntegerField(null=True)
    createDatetime = models.DateTimeField(auto_now_add=datetime.datetime.now())


"""
class User(models.Model):
    id = models.AutoField(primary_key=True)
    username = models.CharField(max_length=16,unique=True)
    password = models.CharField(max_length=16)
    gender = models.PositiveSmallIntegerField()
    new = models.CharField(max_length=10,null=True)
    age = IntegerField(null=True)
    createDatetime = models.DateTimeField(auto_now_add=datetime.datetime.now())
    
class User(models.Model):
    id = models.AutoField(primary_key=True)
    username = models.CharField(max_length=32,unique=True)
    password = models.CharField(max_length=32)
    gender = models.PositiveSmallIntegerField()
    new = models.CharField(max_length=10,null=True)
    age = models.IntegerField(null=True)
    createDatetime = models.DateTimeField(auto_now_add=datetime.datetime.now())
"""
